package com.caidan.search;

import com.caidan.search.config.AllowFileTypeProperties;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

/**
 * @项目名 CaiDanSearchSystem
 * @描述 启动类
 * @作者 小菜蛋
 * @时间 2024/12/1 18:47
 */
@SpringBootApplication
@EnableConfigurationProperties(AllowFileTypeProperties.class)
@MapperScan("com.caidan.search.mapper")
public class SearchApplication {
    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(SearchApplication.class);
        springApplication.setWebApplicationType(WebApplicationType.SERVLET);
        springApplication.run(args);
    }
}
